package com.yunxi.dealer.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.ApiResult;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.dealer.pojo.PartnerAccountOneVO;
import com.yunxi.dealer.pojo.PartnerAccountVO;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * <p>
 * 渠道商帐户 服务类
 * </p>
 *
 * @author
 * @since 2019-05-18
 */
public interface PartnerAccountDubboService {

   PartnerAccountVO getById(String id) throws InvocationTargetException, IllegalAccessException;

   void saveOrUpdate(PartnerAccountVO partnerAccountVO, LoginInfo loginInfo) throws InvocationTargetException, IllegalAccessException;

   void removeById(String id);

   PageInfo<PartnerAccountVO> findPageByVO(PartnerAccountVO partnerAccountVO, Integer pageNum, Integer pageSize,LoginInfo loginInfo) throws Exception;

   ApiResult load(String partnerCode, String datam, String datbi);

   List<PartnerAccountOneVO> listByGroup(PartnerAccountVO partnerAccountVO, LoginInfo loginInfo);

   ApiResult pageByGroup(PartnerAccountVO partnerAccountVO, Integer pageNum, Integer pageSize, LoginInfo loginInfo) throws Exception;

   List listByVo(PartnerAccountVO v);
}
